package com.example.mypainter

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import com.example.mypainter.View2PngUtil.saveViewToPngWithPermission
import kotlinx.android.synthetic.main.activity_main.*

class MainActivity : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)

        exportBtn.setOnClickListener { saveViewToPngWithPermission(this, linearLayout) }
    }
}